from deepdiff import DeepDiff

t1 = {"name": "yanan", "pro": {"sh": "shandong", "city": ["zibo", "weifang"]}}
t2 = {"name": "changsha", "pro": {"sh": "shandong", "town": ["taian", "weifang"]}}
ddiff = DeepDiff(t1, t2, view='tree').pretty()
print(ddiff)

# 默认为text
ddiff = DeepDiff(t1, t2, view='text').pretty()
print(ddiff)

